home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / eplain / doc / Makefile < prev    next >
Makefile  |  1994-04-29  |  2KB  |  59 lines

  1. # Makefile for the various bits of Eplain's documentation.
  2.  
  3. # For `install'.
  4. prefix = /usr/local
  5. infodir = $(prefix)/info
  6.  
  7. INSTALL_DATA = install -m 0664
  8. MAKEINFO = makeinfo
  9. MAKEINFO_FLAGS = --paragraph-indent=2 -I$(gnuorg)
  10. gnuorg = $(HOME)/gnu/gnuorg
  11. # That -I is purely for my own benefit in doing `make dist'.  It won't
  12. # hurt anything for you (I hope).
  13. TEXI2DVI = TEXINPUTS=..:$(gnuorg):; export TEXINPUTS; texi2dvi
  14. TEXINDEX = texindex
  15.  
  16. all: eplain.info eplain.dvi
  17.  
  18. dvi eplain.dvi: *.texi
  19.     $(TEXI2DVI) eplain.texi
  20.  
  21. info eplain.info: *.texi
  22.     $(MAKEINFO) $(MAKEINFO_FLAGS) eplain.texi
  23.  
  24. install: eplain.info
  25.     for i in eplain.info*; do $(INSTALL_DATA) $$i $(infodir); done
  26.  
  27. update:
  28.     emacs -batch -l update.el
  29.  
  30. # Separate the installation instructions into a separate file, for the
  31. # benefit of people who don't want to look at the info file.
  32. INSTALL: *.texi
  33.     $(MAKEINFO) $(MAKEINFO_FLAGS) --no-headers eplain.texi -o - \
  34.       | sed -n '/^Installation/,/^Invoking/'p \
  35.       | sed '$$d' > INSTALL
  36.  
  37. # `make dist' should only be called from the top-level Makefile, as it
  38. # depends on $(version), at least.
  39. distdir = ../eplain-$(version)/doc
  40. dist:
  41.     cp -p $(texsys)/bibtex/doc/btxdoc.tex $(distdir)
  42.     cp -p $(plain)/texinfo.tex $(distdir)
  43.     cp -p $(HOME)/gnu/gnuorg/*.texi $(distdir)
  44.     ln Makefile *.texi eplain.??s $(distdir)
  45.     (cd $(distdir); \
  46.          add-version $(version) eplain.texi; \
  47.          add-date eplain.texi; \
  48.          $(MAKE) INSTALL eplain.info eplain.cps distclean)
  49.     mv $(distdir)/INSTALL $(distdir)/..
  50.  
  51. clean mostlyclean:
  52.     rm -f eplain.?? *.dvi *.log
  53.  
  54. distclean: clean
  55.     for f in eplain.??s; do if test ! -s $$f; then rm -f $$f; fi; done
  56.  
  57. realclean: distclean
  58.     rm -f *.info* eplain.??? INSTALL
  59.